Though most would consider Sir Paul the band's best musician (with an honourable mention for George Harrison), John Lennon typically gets the plaudits for writing.
John Lennon and Paul McCartney wrote the song in 1967 but I doubt even they couldn't have predicted that it would inspire a scientific idea to save the planet!